package com.zhai.boot.domain.mongo;

import com.zhai.boot.common.MongoConstant;
import com.zhai.boot.domain.mongo.base.BaseMongo;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @package: com.zhai.boot.domain.mongo
 * @project-name: zhai-boot
 * @description: zhai mongo
 * @author: Created by 翟凤玺
 * @create-datetime: 2018-8-7 11:13
 */
@Data
@Document(collection = MongoConstant.ZHAI)
public class ZhaiMongo extends BaseMongo {
    /**
     * 姓名
     */
    private String name;
    /**
     * 年龄
     */
    private Integer age;
    /**
     * 爱好
     */
    private List<String> hobby;
    /**
     * 创建时间
     */
    private Date createTime;
}
